<?php
    echo doctype();
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>
            <?php
                echo $this->lang->line('login_title');
            ?>
        </title>
        <?php
            echo link_tag('css/global.css');
            echo link_tag('css/login.css');
        ?>
    </head>
    <body>
        <div id="container">
            <div id="leftcon">
                <div id="logo"></div>
                <div id="unit_name">
                    <?php
                        echo $header;
                    ?>
                </div>
                <div id="unit_type">
                    <?php
                        echo $type;
                    ?>
                </div>
                <div id="li_content_form">
                    <div id="li_notice">
                        <?php
                            echo $this->session->flashdata('error');
                        ?>
                    </div>
                    <?php
                        echo form_open('login/authenticate/');
                    ?>
                    <div class="form_row">
                        <label>
                            <?php
                                echo $this->lang->line('login_username');
                            ?>
                        </label>
                        <?php
                            $data = array(
                                'maxlength' => 32,
                                'name'      => 'user'
                            );
                            echo form_input($data);
                        ?>
                    </div>
                    <div class="form_row">
                        <label>
                            <?php
                                echo $this->lang->line('login_password');
                            ?>
                        </label>
                        <?php
                            $data = array(
                                'maxlength' => 32,
                                'name'      => 'pword'
                            );
                            echo form_password($data);
                        ?>
                    </div>
                    <div id="li_login_btn">
                        <?php
                            $data = array(
                                'name'      => 'login',
                                'id'        => 'login',
                                'type'      => 'submit',
                                'content'   => $this->lang->line('login_button')
                            );
                            echo form_button($data);
                        ?>
                    </div>
                    <?php
                        echo form_close();
                    ?>
                </div>
            </div>
            <div id="content">
                <div id="li_content">
                    <h1>
                        <?php echo $settings['company_name']; ?>
                    </h1>
                    <div id="comp_logo">
                        <img src="<?php echo base_url(); ?>images/comp_logo.<?php echo $settings['logo']; ?>" title="company_logo" alt="company_logo" />
                    </div>
                    <div id="comp_info">
                        <div id="branch_name">
                            <?php echo $settings['branch_name']; ?>
                        </div>
                        <div id="address">
                            <?php echo $settings['street_address']; ?>
                        </div>
                        <div id="contact">
                            <?php echo $settings['contact_number']; ?>
                        </div>
                        <div id="ip_ad">
                            Server IP : <?php echo $ip; ?>
                        </div>
                    </div>
                </div>
                <div id="footer">
                    <?php
                        echo $this->lang->line('global_copy_right');
                    ?>
                </div>
            </div>
        </div>
    </body>
</html>